* {
    font-family: Poppins;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

button {
    padding: 1vh 5vh 1vh 5vh;
    font-size: 2vh;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 1vh;
    cursor: pointer;
}

button.kurangi {
    background-color: #f44336;
}

button.kurangi:hover {
    background-color: #8b2a24;
}

button.kurangi:active {
  transform: translateY(2px);
  transition: 0.1s;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

button:active {
  transform: translateY(2px);
  transition: 0.1s;
}


section {
    margin: 1vh;
    background-color: #1e2a38;
    border-radius: 2vh;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    max-width: 300px;
    min-width: 300px;
}

section#hasil {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

section button {
    margin: 2vh;
}

h1 {
    font-size: 3vh;
    padding: 2vh
}


/* Popup styling konsisten untuk #popup dan #popup2 */
nav#popup, nav#popup2 {
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 1vh;
    font-size: 2vh;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 1vh;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vw;
    max-width: 350px;
    height: auto;
    min-height: 120px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.4s, transform 0.4s;
}
nav#popup { background-color: #233d4d; }
nav#popup2 { background-color: #2f5e7a; }
nav#popup.show, nav#popup2.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

nav button {
    margin: 3vh;
    padding: 1vh 5vh 1vh 5vh;
    font-size: 2vh;
}

#pesannilai {
    display: none;
}

form {
    align-items: center;
    justify-content: center;
     display: flex;
    flex-direction: column;
    font-size: 2vh;
    padding: 5vh;
    gap: 2vh;

}

form input {
    padding: 1vh;
    font-size: 2vh;
    border-radius: 1vh;
    border: none;

}

nav button.red {
    background-color: rgb(113, 11, 11);
}

nav button {
    margin: 1vh;
}

nav h1.red {
    color: rgb(255, 103, 103);
    font-size: 2vh;
    margin: -3vh;
}